/*  1:   */ package org.jetbrains.jps.model.serialization.java;
/*  2:   */ 
/*  3:   */

import com.intellij.util.xmlb.XmlSerializer;
import org.jdom.Element;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jps.model.java.JpsJavaExtensionService;
import org.jetbrains.jps.model.java.runConfiguration.JpsApplicationRunConfigurationProperties;
import org.jetbrains.jps.model.java.runConfiguration.JpsApplicationRunConfigurationState;
import org.jetbrains.jps.model.java.runConfiguration.JpsApplicationRunConfigurationType;
import org.jetbrains.jps.model.serialization.runConfigurations.JpsRunConfigurationPropertiesSerializer;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */ 
/* 12:   */ public class JpsApplicationRunConfigurationSerializer
/* 13:   */   extends JpsRunConfigurationPropertiesSerializer<JpsApplicationRunConfigurationProperties>
/* 14:   */ {
/* 15:   */   public JpsApplicationRunConfigurationSerializer()
/* 16:   */   {
/* 17:34 */     super(JpsApplicationRunConfigurationType.INSTANCE, "Application");
/* 18:   */   }
/* 19:   */   
/* 20:   */   public JpsApplicationRunConfigurationProperties loadProperties(@Nullable Element paramElement)
/* 21:   */   {
/* 22:39 */     JpsApplicationRunConfigurationState localJpsApplicationRunConfigurationState = paramElement != null ? (JpsApplicationRunConfigurationState)XmlSerializer.deserialize(paramElement, JpsApplicationRunConfigurationState.class) : new JpsApplicationRunConfigurationState();
/* 23:   */     
/* 24:41 */     return JpsJavaExtensionService.getInstance().createRunConfigurationProperties(localJpsApplicationRunConfigurationState != null ? localJpsApplicationRunConfigurationState : new JpsApplicationRunConfigurationState());
/* 25:   */   }
/* 26:   */   
/* 27:   */   public void saveProperties(JpsApplicationRunConfigurationProperties paramJpsApplicationRunConfigurationProperties, Element paramElement) {}
/* 28:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.serialization.java.JpsApplicationRunConfigurationSerializer

 * JD-Core Version:    0.7.0.1

 */